schroot: fix compilation with boost 1.89
authorRosen Penev <[email protected]>
Sat, 11 Oct 2025 20:29:14 +0000 (13:29 -0700)
committerTianling Shen <[email protected]>
Thu, 16 Oct 2025 17:39:39 +0000 (01:39 +0800)
Patch taken from reschroot.

Signed-off-by: Rosen Penev <[email protected]>
admin/schroot/Makefile
admin/schroot/patches/020-gcc14.patch
admin/schroot/patches/040-boost-189.patch [new file with mode: 0644]

index 1d175bd62c174cc230dec875d190671a211e86d0..99e2e160e5f15adb4e47bf6dfde49e241b1ed4e1 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=reschroot
 PKG_VERSION:=1.6.13
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeberg.org/shelter/reschroot/archive/release
index 23a57ac19e056035e173da8f36fe93919a5b5973..9e0aade3ab98681283ecd04658fa82f7903b188a 100644 (file)
@@ -15,7 +15,7 @@
              ${public_chroot_facet_cc_sources})
  target_link_libraries(sbuild
                        PRIVATE
-+                      Intl::Intl
++                        Intl::Intl
                          ${CMAKE_THREAD_LIBS_INIT}
                          ${PAM_LIBRARY}
                          ${UUID_LIBRARY}
diff --git a/admin/schroot/patches/040-boost-189.patch b/admin/schroot/patches/040-boost-189.patch
new file mode 100644 (file)
index 0000000..9d530b6
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -59,7 +59,11 @@ find_package(Threads REQUIRED)
+ include(FindBoost)
+ find_package(Boost REQUIRED
+-             COMPONENTS filesystem system iostreams program_options regex)
++             COMPONENTS filesystem iostreams program_options regex)
++if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
++  list(APPEND BOOST_REQUIRED_COMPONENTS system)
++  find_package(Boost REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
++endif()
+ # HEADER CHECKS
+ include(CheckIncludeFileCXX)